package com.stone.design.patterns.state;

import android.icu.text.SymbolTable;

/**
 * @author Stone
 * @version V1.0
 * @description:
 * @date 4/25/18 22:04
 * @email redsstone@163.com
 */
public class SoldOutState implements State{

    GumballMachine mGumballMachine;

    public SoldOutState(GumballMachine gumballMachine) {
        mGumballMachine = gumballMachine;
    }

    @Override
    public void insertQuarter() {

        System.out.println("you can't insert quarter, the soldOut");

    }

    @Override
    public void ejectQuarter() {
        System.out.println("you can't eject, you haven't insert quarter");
    }

    @Override
    public void tumCrank() {
        System.out.println("you turned ,but soldOut");
    }

    @Override
    public void dispense() {
        System.out.println("no gumball dispense");
    }
}
